<?php
	$hotelAvailbable = new hotelAvailableClass();
	$hotelAvailbable->setParam("t9grpd33pwudkegxpdrq6xp5","55505","en_US","USD","C08E1ECA-D05A-4E24-B6F6-7DE12A33DD0F","09/04/2013","09/05/2013","2");
	$hotelAvailables = $hotelAvailbable->getHotelAvailable();
	
	foreach($hotelAvailables as $hotelList){
		// Represent variable
		$hotel_id = $hotelList->hotelId;
		$hotel_image = $hotelList->hotelImage;
		$hotel_name = $hotelList->hotelName;
		$hotel_address = $hotelList->hotelAddress.', '.$hotelList->hotelPostalCode.', '.$hotelList->hotelCity;
		$hotel_description = $hotelList->hotelShortDescription;
		$hotel_rate = $hotelList->hotelLowRate.' '.$hotelList->hotelRateCurrencyCode;
		$hotel_rating = $hotelList->hotelRating;
?>
        <div class="list-hotel">
        	<div class="list-hotel-img">
            	<img  width="200" height="130" src="<?php echo $hotel_image; ?>" alt="<?php echo $hotel_name; ?>" />
            </div>
            <div class="list-hotel-description">
            	<h2><?php echo $hotel_name; ?></h2>
                <div><?php echo $hotel_rating; ?></div>
                <h3><?php echo $hotel_address; ?></h3>
                <p><?php echo $hotel_description; ?></p>
                <div class="clear10"></div>
				<div class="list-hotel-rate">Rate from: <?php echo $hotel_rate; ?></div>
                <div class="view-button"><a href="?page=detail&amp;id=<?php echo $hotel_id; ?>">View</a></div>
                <div class="clear"></div>
            </div>
            <div class="clear"></div>
        </div>
<?php
	}
?>